import Vue from 'vue'
import App from './App'
import store from './store'
Vue.config.productionTip = false
import { http } from '@/api/service.js'
import { http2 } from '@/api/service2.js'
import funs from '@/utils/funs.js'
import type from '@/utils/type.js'
import config from './config.js'
import zhouWeiNavBar from "@/components/zhouWei-navBar";
import dayjs from 'dayjs'
Vue.component("nav-bar", zhouWeiNavBar);
App.mpType = 'app'
Vue.prototype.$http = http
Vue.prototype.$http2 = http2
Vue.prototype.$funs = funs
Vue.prototype.$type = type
Vue.prototype.$config = config
Vue.filter('formatTime', function(val) {
	if(!val) return '';
	return dayjs(val).format('YYYY-MM-DD HH:mm:ss')
})
console.log(funs.toLocalTime('2020-12-19T15:44:29+08:00'))
const app = new Vue({
    ...App,
	store
})
app.$mount()
